﻿using System;
using System.Collections;
using LzmaHelper;
using UnityEngine;

namespace MyAssetBundles {
    public abstract class CoderFolder : BaseFolder, ILzmaProgress {
        public string _inPath;
        public long _inTotalSize;
        public long _outTotalSize;
        public virtual void SetProgress (long inSize, long outSize)
        {

        }

        protected LzmaParams CreateCoderParams (string savePath)
        {
            LzmaParams myParams = new LzmaParams();
            myParams.inputPath = _inPath;
            myParams.outputPath = savePath;
            myParams.outputSize = _outTotalSize;
            myParams.progress = this;
            return myParams;
        }
    }
}